#################################################################################
# The following files replicate the findings in "Conflicts over Disarmament and 
# International Security: Analyzing Speeches in the UN General Assembly"
# by D. Finke and T. Risse. Contact: finke@ps.au.dk
# 
# "main file.R" guides you through the analysis. It start with a short descirption
# of each analytical step. 
# "speeches_ctt1.R" contains the corpus of speeches in the UNGA's First Main Ctte.
# "simulations_topic1.R" to "simulations_topic8.R" are scripts for running the
# wordfish simulations for the respective topic. This is the most computationally 
# extensive part, therefore we include separate files for each topic which can be
# run in parallel.
# "thirdvaraibles.xlsx" contains a set of independent variables for replicating the
# regression analysis presented in the article. 
# 
# We run the files on a virtual machine (AWS) with the following specs:
# Intel(R) Xeon(R) Platinum 8375C CPU @2.9 GHZ with 16 virtual cores, 128 GB RAM
# OS: Windows Server 2022, version 21H2
# R version 4.2.2, R Studio 2022.12
# List of required packages: 
# library(countrycode)
# library(data.table)
# library(dplyr)
# library(foreign)
# library(furrr)
# library(ggplot2)
# library(ggrepel)
# library(GPArotation)
# library(lme4)
# library(lmerTest)
# library(lubridate)
# library(magrittr)
# library(openxlsx)
# library(pacman)
# library(psych)
# library(purrr)
# library(quanteda)
# library(rlist)
# library(RSQLite)
# library(rvest)
# library(shiny)
# library(shinyBS)
# library(SnowballC)
# library(stm)
# library(stminsights)
# library(stringr)
# library(tictoc)
# library(tidytext)
# library(tidyr)
# library(tm)
# library(wordcloud)
# "output.txt" contains the corresponding log file. 
# "outputtables.txt" includes the raw regression tables.
#################################################################################
